package com.usian.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.io.Serializable;
import java.util.Date;

@Table(name = "deop")
public class Deop implements Serializable {

	private static final long serialVersionUID = 7525209384051231334L;

	@Id
	@TableId(value = "id",type = IdType.AUTO)
	@Column(name = "id")
	private Integer id;

	@Column(name = "name")
	private String name;

	@Column(name = "jian")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date jian;


	public Deop() {
	}

	public Deop(Integer id, String name, Date jian) {	
		this.id = id;
		this.name = name;
		this.jian = jian;
	}


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getJian() {
		return jian;
	}

	public void setJian(Date jian) {
		this.jian = jian;
	}


	@Override
	public String toString() {
		return "Deop{" +
				"id='" + id + '\'' +
				"name='" + name + '\'' +
				"jian='" + jian + '\'' +
				'}';
	}

}
